package com.rd.student.jiaji.class4.suyan.zrrd.day30_0801;

import java.util.Arrays;

public class ChoiceArrTest {
    public static void main(String[] args) {
        int min = 0;
        int index = 0;
        int[] arr = new int[]{60, 77, 33, 55, 88, 90, 99};
        for (int i = 0; i < arr.length; i++) {
            if (arr[min] > arr[i]) {
                int temp=arr[i];
                arr[i]=arr[index];
                arr[index]=temp;
                index++;
                System.out.println(arr[min]);
                System.out.println(Arrays.toString(arr));

            }
        }
    }

}
